package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Good;
import com.net.tkc.pro.impl.GoodImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class GoodService implements GoodImpl{
    @Resource
    GoodImpl goodimpl;

    @Override
    public int addGood(Good Good) {
        return goodimpl.addGood(Good);
    }

    @Override
    public int delGood(int id) {
        return goodimpl.delGood(id);
    }

    @Override
    public List<Good> getPostList(int userid) {
        return goodimpl.getPostList(userid);
    }

    @Override
    public List<Good> getUser(int postid) {
        return goodimpl.getUser(postid);
    }


}

